
import Vue from 'vue'
import Router from 'vue-router'

//
const topNav = r => require.ensure([], () => r(require('@/components/nav/topNav')), 'topNav')//公共组件头
const wechatregister = r => require.ensure([], () => r(require('@/page/wechatregister')), 'wechatregister')


Vue.use(Router)

var routes= [
    {
      path: '/topNav',
      name: 'topNav',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: topNav
    },
     {
      path: '/wechatregister',
      name: 'wechatregister',
      component: wechatregister
    }
  ];



export default new Router({
  routes:routes
})


